bitkeeper revision 1.1236.1.182 (424d1709I2BepRFmTt3ZX8gxYVBdrQ)
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 1 Apr 2005 09:40:25 +0000 (09:40 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 1 Apr 2005 09:40:25 +0000 (09:40 +0000)
sync_lazy_execstate functions are now all arch-specific. We may want
to finetune their behaviour later.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/ia64/xenmisc.c
xen/arch/x86/domain.c
xen/include/xen/sched.h

index ced4fc42865271ea7e1efc1168d43396ec011108..1d3a951a64800b91cc0b38d0002765274677ce41 100644 (file)
@@ -54,6 +54,9 @@ platform_is_hp_ski(void)
 
 /* calls in xen/common code that are unused on ia64 */
 
+void sync_lazy_execstate_cpuset(unsigned long cpuset) {}
+void sync_lazy_execstate_all(void) {}
+
 int grant_table_create(struct domain *d) { return 0; }
 void grant_table_destroy(struct domain *d)
 {
index d2b04ac8abbe05f2fc1d77535a0b361e9d417532..0a599661dc42191ad9c36f47cc6a330067e0ac0a 100644 (file)
@@ -864,6 +864,16 @@ int __sync_lazy_execstate(void)
     return 1;
 }
 
+void sync_lazy_execstate_cpuset(unsigned long cpuset)
+{
+    flush_tlb_mask(cpuset);
+}
+
+void sync_lazy_execstate_all(void)
+{
+    flush_tlb_all();
+}
+
 unsigned long __hypercall_create_continuation(
     unsigned int op, unsigned int nr_args, ...)
 {
index 2c9336bc91a8aac85464e80ca47b6e1cff18c624..670b891f59617a85d1d1ca1508228ac91ff4a105 100644 (file)
@@ -255,8 +255,8 @@ void domain_sleep(struct exec_domain *d);
  * Force loading of currently-executing domain state on the specified set
  * of CPUs. This is used to counteract lazy state switching where required.
  */
-#define sync_lazy_execstate_cpuset(_cpuset) flush_tlb_mask(_cpuset)
-#define sync_lazy_execstate_all()           flush_tlb_all()
+extern void sync_lazy_execstate_cpuset(unsigned long cpuset);
+extern void sync_lazy_execstate_all(void);
 extern int __sync_lazy_execstate(void);
 
 extern void context_switch(